import { Module, forwardRef } from '@nestjs/common';
import { UsersService } from './users.service';
import { PrismaService } from '../prisma/prisma.service';
import { AuthModule } from '../auth/auth.module'; // 使用 forwardRef()
import { UsersController } from './users.controller';

@Module({
  imports: [forwardRef(() => AuthModule)], // 使用 forwardRef() 避免循环依赖
  providers: [UsersService, PrismaService],
  controllers: [UsersController],
  exports: [UsersService],
})
export class UsersModule {}
